package com.juidemo.demo2;
import java.awt.*;

import static javax.swing.JFrame.EXIT_ON_CLOSE;

public class Frame12{
	public static void main(String[] args)
	{
		Frame f = new  Frame("飞机大战");

		f.setLayout(new BorderLayout());
		f.add(new Button("North"),BorderLayout.NORTH);
		f.add(new Button("South"),BorderLayout.SOUTH);
		f.add(new Button("East"),BorderLayout.EAST);
		f.add(new Button("West"),BorderLayout.WEST);
		f.add(new Button("Center"),BorderLayout.CENTER);
		f.setSize(2000,2000);
		f.setVisible(true);

	}
}